package com.lemontree.spring4.day02;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {SpringConfig.class})
public class Spring4Test02 {
    @Autowired
    private Performance audiencePerform;

    @Test
    public void test(){
       Encoreable en = (Encoreable) audiencePerform;
       en.doSomething();
    }

}
